package com.lframework.xingyun.basedata.bo.product.spec;

import java.math.BigDecimal;
import com.lframework.starter.web.core.bo.BaseBo;
import com.lframework.xingyun.basedata.entity.ProductSpec;
import io.swagger.annotations.ApiModelProperty;

import lombok.Data;

/**
 * <p>
 * 商品规格表 GetBo
 * </p>
 *
 */
@Data
public class GetProductSpecBo extends BaseBo<ProductSpec> {

    /**
     * ID
     */
    @ApiModelProperty("ID")
    private String id;

    /**
     * 主商品id
     */
    @ApiModelProperty("主商品id")
    private String productId;

    /**
     * 属性id
     */
    @ApiModelProperty("属性id")
    private String propertyId;

    /**
     * 属系值id
     */
    @ApiModelProperty("属系值id")
    private String itemId;

    /**
     * 采购价
     */
    @ApiModelProperty("采购价")
    private BigDecimal purchasePrice;

    /**
     * 零售价
     */
    @ApiModelProperty("零售价")
    private BigDecimal retailPrice;

    /**
     * 销售价
     */
    @ApiModelProperty("销售价")
    private BigDecimal salePrice;

    /**
     * 是否可用
     */
    @ApiModelProperty("是否可用")
    private Boolean available;

    public GetProductSpecBo() {

    }

    public GetProductSpecBo(ProductSpec dto) {

        super(dto);
    }

    @Override
    public BaseBo<ProductSpec> convert(ProductSpec dto) {
        return super.convert(dto);
    }

    @Override
    protected void afterInit(ProductSpec dto) {

    }
}

